+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
+2000-01-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
+ destroy
+
+ * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
+
+ * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
+ implemented in platform-specific code
+
+ * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
+
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
+ underscore in front
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
+ put an underscore in front
+
+ * gdk/gdkcursor.c: new file, implements
+ gdk_cursor_ref/gdk_cursor_unref
+
+ * gdk/gdkcursor.h: Refcount GdkCursor
+
+ * gdk/gdkcompat.h (gdk_cursor_destroy): compat
+
2000-01-29 Tor Lillqvist <tml@iki.fi>
* gdk/gdkwindow.h
gdk_c_sources = @STRIP_BEGIN@ \
gdk.c \
gdkcolor.c \
+ gdkcursor.c \
gdkdraw.c \
gdkevents.c \
gdkfont.c \
#define gdk_gc_destroy gdk_gc_unref
#define gdk_image_destroy gdk_image_unref
+#define gdk_cursor_destroy gdk_cursor_unref
+
#define GDK_WINDOW_PIXMAP GDK_DRAWABLE_PIXMAP
struct _GdkCursor
{
GdkCursorType type;
+ guint refcount;
};
/* Cursors
GdkColor *bg,
gint x,
gint y);
-void gdk_cursor_destroy (GdkCursor *cursor);
+GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
+void gdk_cursor_unref (GdkCursor *cursor);
#ifdef __cplusplus
}
g_return_val_if_fail (image != NULL, NULL);
private->ref_count++;
+
+ return image;
}
void
void _gdk_colormap_real_destroy (GdkColormap *colormap);
+void _gdk_cursor_destroy (GdkCursor *cursor);
+
/* Initialization */
extern GdkArgDesc _gdk_windowing_args[];
}
void
-gdk_cursor_destroy (GdkCursor *cursor)
+_gdk_cursor_destroy (GdkCursor *cursor)
{
GdkCursorPrivate *private;
}
void
-gdk_cursor_destroy (GdkCursor *cursor)
+_gdk_cursor_destroy (GdkCursor *cursor)
{
GdkCursorPrivate *private;
cursor = gdk_cursor_new (c);
gdk_window_set_cursor (widget->window, cursor);
- gdk_cursor_destroy (cursor);
+ gdk_cursor_unref (cursor);
}
static gint
cursor = gdk_cursor_new (c);
gdk_window_set_cursor (widget->window, cursor);
- gdk_cursor_destroy (cursor);
+ gdk_cursor_unref (cursor);
}
static gint